package com.wang.feign;

import com.wang.request.LockProductRequest;
import com.wang.util.JsonData;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(name = "xdclass-product-service")
public interface ProductFeignService {


    @PostMapping("/api/cart/v1/confirm_order_car_item")
    JsonData confirmOrderCarItem(List<Long> productIdList);

    /**
     * 锁定商品库存
     * @param lockProductRequest
     * @return
     */
    @PostMapping("/lock_product")
    JsonData lockProduct(@RequestBody LockProductRequest lockProductRequest);
}
